package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZQW
 */
public class Department extends Model<Department> {

private static final long serialVersionUID=1L;

    /**
     * ID主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 科室编码
     */
    @TableField("DeptCode")
    private String DeptCode;

    /**
     * 科室名称
     */
    @TableField("DeptName")
    private String DeptName;

    /**
     * 科室分类
     */
    @TableField("DeptCategoryID")
    private Integer DeptCategoryID;

    /**
     * 科室类型
     */
    @TableField("DeptType")
    private Integer DeptType;

    /**
     * 删除标记
     */
    @TableField("DelMark")
    private Integer DelMark;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeptCode() {
        return DeptCode;
    }

    public void setDeptCode(String DeptCode) {
        this.DeptCode = DeptCode;
    }

    public String getDeptName() {
        return DeptName;
    }

    public void setDeptName(String DeptName) {
        this.DeptName = DeptName;
    }

    public Integer getDeptCategoryID() {
        return DeptCategoryID;
    }

    public void setDeptCategoryID(Integer DeptCategoryID) {
        this.DeptCategoryID = DeptCategoryID;
    }

    public Integer getDeptType() {
        return DeptType;
    }

    public void setDeptType(Integer DeptType) {
        this.DeptType = DeptType;
    }

    public Integer getDelMark() {
        return DelMark;
    }

    public void setDelMark(Integer DelMark) {
        this.DelMark = DelMark;
    }

    public static final String ID = "ID";

    public static final String DEPTCODE = "DeptCode";

    public static final String DEPTNAME = "DeptName";

    public static final String DEPTCATEGORYID = "DeptCategoryID";

    public static final String DEPTTYPE = "DeptType";

    public static final String DELMARK = "DelMark";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Department{" +
        "id=" + id +
        ", DeptCode=" + DeptCode +
        ", DeptName=" + DeptName +
        ", DeptCategoryID=" + DeptCategoryID +
        ", DeptType=" + DeptType +
        ", DelMark=" + DelMark +
        "}";
    }
}
